Integrand size = 13, antiderivative size = 31 \[ \int \frac {\cot ^4(x)}{a+a \csc (x)} \, dx=\frac {x}{a}+\frac {\text {arctanh}(\cos (x))}{2 a}+\frac {\cot (x) (2-\csc (x))}{2 a} \]
[Out]
Time = 0.08 (sec) , antiderivative size = 31, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.231, Rules used = {3973, 3966, 3855} \[ \int \frac {\cot ^4(x)}{a+a \csc (x)} \, dx=\frac {\text {arctanh}(\cos (x))}{2 a}+\frac {x}{a}+\frac {\cot (x) (2-\csc (x))}{2 a} \]
[In]
[Out]
Rule 3855
Rule 3966
Rule 3973
Rubi steps \begin{align*} \text {integral}& = \frac {\int \cot ^2(x) (-a+a \csc (x)) \, dx}{a^2} \\ & = \frac {\cot (x) (2-\csc (x))}{2 a}-\frac {\int (-2 a+a \csc (x)) \, dx}{2 a^2} \\ & = \frac {x}{a}+\frac {\cot (x) (2-\csc (x))}{2 a}-\frac {\int \csc (x) \, dx}{2 a} \\ & = \frac {x}{a}+\frac {\text {arctanh}(\cos (x))}{2 a}+\frac {\cot (x) (2-\csc (x))}{2 a} \\ \end{align*}
Leaf count is larger than twice the leaf count of optimal. \(90\) vs. \(2(31)=62\).
Time = 0.16 (sec) , antiderivative size = 90, normalized size of antiderivative = 2.90 \[ \int \frac {\cot ^4(x)}{a+a \csc (x)} \, dx=\frac {x}{a}+\frac {\cot \left (\frac {x}{2}\right )}{2 a}-\frac {\csc ^2\left (\frac {x}{2}\right )}{8 a}+\frac {\log \left (\cos \left (\frac {x}{2}\right )\right )}{2 a}-\frac {\log \left (\sin \left (\frac {x}{2}\right )\right )}{2 a}+\frac {\sec ^2\left (\frac {x}{2}\right )}{8 a}-\frac {\tan \left (\frac {x}{2}\right )}{2 a} \]
[In]
[Out]
Time = 0.84 (sec) , antiderivative size = 51, normalized size of antiderivative = 1.65
method | result | size |
default | \(\frac {\frac {\tan \left (\frac {x}{2}\right )^{2}}{2}-2 \tan \left (\frac {x}{2}\right )+8 \arctan \left (\tan \left (\frac {x}{2}\right )\right )-\frac {1}{2 \tan \left (\frac {x}{2}\right )^{2}}+\frac {2}{\tan \left (\frac {x}{2}\right )}-2 \ln \left (\tan \left (\frac {x}{2}\right )\right )}{4 a}\) | \(51\) |
risch | \(\frac {x}{a}+\frac {2 i {\mathrm e}^{2 i x}+{\mathrm e}^{3 i x}-2 i+{\mathrm e}^{i x}}{a \left ({\mathrm e}^{2 i x}-1\right )^{2}}-\frac {\ln \left ({\mathrm e}^{i x}-1\right )}{2 a}+\frac {\ln \left ({\mathrm e}^{i x}+1\right )}{2 a}\) | \(67\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 64 vs. \(2 (25) = 50\).
Time = 0.26 (sec) , antiderivative size = 64, normalized size of antiderivative = 2.06 \[ \int \frac {\cot ^4(x)}{a+a \csc (x)} \, dx=\frac {4 \, x \cos \left (x\right )^{2} + {\left (\cos \left (x\right )^{2} - 1\right )} \log \left (\frac {1}{2} \, \cos \left (x\right ) + \frac {1}{2}\right ) - {\left (\cos \left (x\right )^{2} - 1\right )} \log \left (-\frac {1}{2} \, \cos \left (x\right ) + \frac {1}{2}\right ) - 4 \, \cos \left (x\right ) \sin \left (x\right ) - 4 \, x + 2 \, \cos \left (x\right )}{4 \, {\left (a \cos \left (x\right )^{2} - a\right )}} \]
[In]
[Out]
\[ \int \frac {\cot ^4(x)}{a+a \csc (x)} \, dx=\frac {\int \frac {\cot ^{4}{\left (x \right )}}{\csc {\left (x \right )} + 1}\, dx}{a} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 86 vs. \(2 (25) = 50\).
Time = 0.35 (sec) , antiderivative size = 86, normalized size of antiderivative = 2.77 \[ \int \frac {\cot ^4(x)}{a+a \csc (x)} \, dx=-\frac {\frac {4 \, \sin \left (x\right )}{\cos \left (x\right ) + 1} - \frac {\sin \left (x\right )^{2}}{{\left (\cos \left (x\right ) + 1\right )}^{2}}}{8 \, a} + \frac {2 \, \arctan \left (\frac {\sin \left (x\right )}{\cos \left (x\right ) + 1}\right )}{a} - \frac {\log \left (\frac {\sin \left (x\right )}{\cos \left (x\right ) + 1}\right )}{2 \, a} + \frac {{\left (\frac {4 \, \sin \left (x\right )}{\cos \left (x\right ) + 1} - 1\right )} {\left (\cos \left (x\right ) + 1\right )}^{2}}{8 \, a \sin \left (x\right )^{2}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 65 vs. \(2 (25) = 50\).
Time = 0.27 (sec) , antiderivative size = 65, normalized size of antiderivative = 2.10 \[ \int \frac {\cot ^4(x)}{a+a \csc (x)} \, dx=\frac {x}{a} - \frac {\log \left ({\left | \tan \left (\frac {1}{2} \, x\right ) \right |}\right )}{2 \, a} + \frac {a \tan \left (\frac {1}{2} \, x\right )^{2} - 4 \, a \tan \left (\frac {1}{2} \, x\right )}{8 \, a^{2}} + \frac {6 \, \tan \left (\frac {1}{2} \, x\right )^{2} + 4 \, \tan \left (\frac {1}{2} \, x\right ) - 1}{8 \, a \tan \left (\frac {1}{2} \, x\right )^{2}} \]
[In]
[Out]
Time = 18.97 (sec) , antiderivative size = 85, normalized size of antiderivative = 2.74 \[ \int \frac {\cot ^4(x)}{a+a \csc (x)} \, dx=\frac {{\mathrm {tan}\left (\frac {x}{2}\right )}^2}{8\,a}-\frac {2\,\mathrm {atan}\left (\frac {4}{4\,\mathrm {tan}\left (\frac {x}{2}\right )+2}-\frac {2\,\mathrm {tan}\left (\frac {x}{2}\right )}{4\,\mathrm {tan}\left (\frac {x}{2}\right )+2}\right )}{a}-\frac {\mathrm {tan}\left (\frac {x}{2}\right )}{2\,a}-\frac {\ln \left (\mathrm {tan}\left (\frac {x}{2}\right )\right )}{2\,a}+\frac {2\,\mathrm {tan}\left (\frac {x}{2}\right )-\frac {1}{2}}{4\,a\,{\mathrm {tan}\left (\frac {x}{2}\right )}^2} \]
[In]
[Out]